package org.idea.spring.bean.listener;

import org.springframework.stereotype.Component;

/**
 * @author linhao
 * @date created in 7:32 下午 2020/10/11
 */
@Component
public class MyLog {

    private int flag;

    public MyLog(){
        flag=2;
        System.out.println("this flag is:"+flag);
    }

    @Override
    public String toString() {
        return "MyLog{" +
                "flag=" + flag +
                '}';
    }
}
